| 
    
      
  | 
  
 Chromium Code Reviews
        
  DescriptionMake ComputedStyle::InheritFrom group independent.
In ComputedStyle::InheritFrom, we assume that the UserModify() field is
always stored in RareInheritedData. After we generate the user-modify
property, we might want to change where it is stored, so UserModify may
no longer be in RareInheritedData. This patch rearranges the logic in
the function so that UserModify can be stored in any subgroup without
breaking the code. There are no changes in behaviour.
BUG=628043
Review-Url: https://codereview.chromium.org/2829773003
Cr-Commit-Position: refs/heads/master@{#471095}
Committed: https://chromium.googlesource.com/chromium/src/+/2389662b9fb0735446c5c8235bcdc1b0ff505366
   
  Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : Rebase #Patch Set 4 : Rebase #Patch Set 5 : Rebase #Patch Set 6 : Rebase #
      Total comments: 2
      
     
  
  Messages
    Total messages: 64 (55 generated)
     
  
  
 The CQ bit was checked by shend@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...) 
 The CQ bit was checked by shend@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...) 
 shend@chromium.org changed reviewers: + nainar@chromium.org 
 Hi Naina, PTAL 
 lgtm 
 The CQ bit was checked by shend@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...) chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-...) linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) 
 The CQ bit was checked by shend@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_a...) chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-...) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...) 
 The CQ bit was checked by shend@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...) 
 The CQ bit was checked by shend@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...) 
 shend@chromium.org changed reviewers: + alancutter@chromium.org 
 Hi Alan, PTAL 
 The CQ bit was checked by shend@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clan...) cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...) 
 The CQ bit was checked by shend@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) 
 The CQ bit was checked by shend@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 Does this fix a bug? Are there any changes in behaviour? It seems like this change is in preparation for another patch that breaks the assumption being removed. Please make it clear why we are doing this in the description. 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: This issue passed the CQ dry run. 
 Description was changed from ========== Make ComputedStyle::InheritFrom group independent. In ComputedStyle::InheritFrom, we assume that the UserModify() field is always stored in RareInheritedData. This patch removes this assumption by rearranging the logic in the function. BUG=628043 ========== to ========== Make ComputedStyle::InheritFrom group independent. In ComputedStyle::InheritFrom, we assume that the UserModify() field is always stored in RareInheritedData. After we generate the user-modify property, we might want to change where it is stored, so UserModify may no longer be in RareInheritedData. This patch rearranges the logic in the function so that UserModify can be stored in any subgroup without breaking the code. There are no changes in behaviour. BUG=628043 ========== 
 On 2017/05/08 at 07:22:55, alancutter wrote: > Does this fix a bug? Are there any changes in behaviour? > It seems like this change is in preparation for another patch that breaks the assumption being removed. Please make it clear why we are doing this in the description. Oops yeah that was a bad CL description. PTAL again? 
 lgtm https://codereview.chromium.org/2829773003/diff/100001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/style/ComputedStyle.cpp (right): https://codereview.chromium.org/2829773003/diff/100001/third_party/WebKit/Sou... third_party/WebKit/Source/core/style/ComputedStyle.cpp:317: ComputedStyleBase::InheritFrom(inherit_parent, is_at_shadow_boundary); Unrelated to this patch: Why does this function take is_at_shadow_boundary? It doesn't appear to use it. 
 https://codereview.chromium.org/2829773003/diff/100001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/style/ComputedStyle.cpp (right): https://codereview.chromium.org/2829773003/diff/100001/third_party/WebKit/Sou... third_party/WebKit/Source/core/style/ComputedStyle.cpp:317: ComputedStyleBase::InheritFrom(inherit_parent, is_at_shadow_boundary); On 2017/05/09 at 00:09:18, alancutter wrote: > Unrelated to this patch: Why does this function take is_at_shadow_boundary? It doesn't appear to use it. I think ComputedStyleBase::InheritFrom was created as a direct copy of ComputedStyle::InheritFrom, in case we want to replace ComputedStyle with ComputedStyleBase. IMO, such an endeavour is very complicated and I don't think it's worth. So in the near future, no, is_at_shadow_boundary does not need to be in ComputedStyleBase::InheritFrom. 
 The CQ bit was checked by shend@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: This issue passed the CQ dry run. 
 The CQ bit was checked by shend@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) 
 The CQ bit was checked by shend@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: This issue passed the CQ dry run. 
 The CQ bit was checked by shend@chromium.org 
 The patchset sent to the CQ was uploaded after l-g-t-m from nainar@chromium.org Link to the patchset: https://codereview.chromium.org/2829773003/#ps100001 (title: "Rebase") 
 CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 CQ is committing da patch.
Bot data: {"patchset_id": 100001, "attempt_start_ts": 1494541127887860,
"parent_rev": "2a03a77423e306ac78fcd89eaf09964153d7599a", "commit_rev":
"2389662b9fb0735446c5c8235bcdc1b0ff505366"}
          
 
            
              
                Message was sent while issue was closed.
              
            
             
          
        Description was changed from ========== Make ComputedStyle::InheritFrom group independent. In ComputedStyle::InheritFrom, we assume that the UserModify() field is always stored in RareInheritedData. After we generate the user-modify property, we might want to change where it is stored, so UserModify may no longer be in RareInheritedData. This patch rearranges the logic in the function so that UserModify can be stored in any subgroup without breaking the code. There are no changes in behaviour. BUG=628043 ========== to ========== Make ComputedStyle::InheritFrom group independent. In ComputedStyle::InheritFrom, we assume that the UserModify() field is always stored in RareInheritedData. After we generate the user-modify property, we might want to change where it is stored, so UserModify may no longer be in RareInheritedData. This patch rearranges the logic in the function so that UserModify can be stored in any subgroup without breaking the code. There are no changes in behaviour. BUG=628043 Review-Url: https://codereview.chromium.org/2829773003 Cr-Commit-Position: refs/heads/master@{#471095} Committed: https://chromium.googlesource.com/chromium/src/+/2389662b9fb0735446c5c8235bcd... ========== 
 
            
              
                Message was sent while issue was closed.
              
            
             
          
        Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/2389662b9fb0735446c5c8235bcd...  | 
    
