Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(810)

Issue 319513005: Return early in SelectorChecker::checkOne() if selector.isAttributeSelector() is true (Closed)

Created:
6 years, 6 months ago by Inactive
Modified:
6 years, 6 months ago
Reviewers:
esprehn, eseidel
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, dglazkov+blink, ed+blinkwatch_opera.com, rwlbuis, rune+blink
Visibility:
Public.

Description

Return early in SelectorChecker::checkOne() if selector.isAttributeSelector() is true Return early in SelectorChecker::checkOne() if selector.isAttributeSelector() is true and the selector matched. Previously, we were only returning early if the selector did not match and we were falling through if it did. This means that we ended up doing the 2 if() checks below in the method unnecessarily: - selector.m_match == CSSSelector::PseudoClass - selector.m_match == CSSSelector::PseudoElement Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175518

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -4 lines) Patch
M Source/core/css/SelectorChecker.cpp View 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Inactive
6 years, 6 months ago (2014-06-04 21:23:19 UTC) #1
esprehn
lgtm
6 years, 6 months ago (2014-06-04 22:39:05 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/319513005/1
6 years, 6 months ago (2014-06-04 22:39:35 UTC) #3
commit-bot: I haz the power
6 years, 6 months ago (2014-06-04 23:51:54 UTC) #4
Message was sent while issue was closed.
Change committed as 175518

Powered by Google App Engine
This is Rietveld 408576698